package com.zqx.decorator.abdecorator;

import com.zqx.decorator.abcomponent.Components;

/**
 * description: 抽象装饰类
 * @author zqx
 * @date 2018/09/03
 */
public class ComponentDecorator extends Components {

    private Components components;//维持对抽象构件类对象的引用

    public ComponentDecorator(Components components) {
        this.components = components;
    }

    @Override
    public void display() {
        components.display();
    }
}
